#include "paintview.h"
#include "toolsmanager.h"

#include <QMessageBox>
#include <QGraphicsSceneMouseEvent>

PaintView::PaintView(QGraphicsScene *s, QWidget *parent = 0) :
        QGraphicsView(s, parent)
{

}

PaintView::~PaintView()
{

}

/*void PaintView::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
    PaintTool *tool = ToolsManager::instance()->selectedTool();

    if(tool)
    {
        tool->mousePressed(event);
    }
}

void PaintView::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
{
    PaintTool *tool = ToolsManager::instance()->selectedTool();

    if(tool)
    {
        tool->mouseMoved(event);
    }
}

void PaintView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
{
    PaintTool *tool = ToolsManager::instance()->selectedTool();

    if(tool)
    {
        tool->mouseReleased(event);
    }
}*/

